<% 'Database Connection String; 'Server.MapPath = the location of the database on the server 'please change the path to the correct path on your server Set objADO = Server.CreateObject("ADODB.Connection") sDSN = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("db\fsboREplus.mdb") & ";" objADO.Open sDSN 'Contact Variables; Used in contact.asp and other pages that contain the contact info. 'These variables are pulled from the table TblConfig and these values can 'be edited through the site admin control panel. Do not edit the values in this page. ' Create a recordset object to store specific table information Set objConfig = Server.CreateObject("ADODB.Recordset") 'Establish what records you want selected for the SQL query string SQL = "Select * From TblConfig" 'Set the recordset object equal to the SQL query string objConfig.Open SQL, objADO, 1, 3 strVarCompany = objConfig("Company") strVarAddress = objConfig("CompanyAddress") strVarCity = objConfig("CompanyCity") strVarState = objConfig("CompanyState") strVarZip = objConfig("CompanyZip") strVarCountry = objConfig("CompanyCountry") strVarEmail = objConfig("CompanyEmail") strVarPhone = objConfig("CompanyPhone") strVarFax = objConfig("CompanyFax") strVarMainContact = objConfig("CompanyContact") strVarWebsite = objConfig("CompanyWebsite") strVarBGColor = objConfig("BGColor") strSlogan = objConfig("Slogan") strOfferAdvertising = objConfig("OfferAdvertising") str1000ImpressionsAdCost = objConfig("1000ImpressionsCost") str5000ImpressionsAdCost = objConfig("5000ImpressionsCost") str10000ImpressionsAdCost = objConfig("10000ImpressionsCost") str50000ImpressionsAdCost = objConfig("50000ImpressionsCost") str100000ImpressionsAdCost = objConfig("100000ImpressionsCost") strServiceType = objConfig("ServiceType") strServiceAdCost = objConfig("ServiceAdCost") strAgentList = objConfig("AgentList") strLogo = objConfig("logo") strKeywords = objConfig("Keywords") strMetaDescription = objConfig("MetaDescription") 'PAYPAL VARIABLES - See PaypalCode.doc located in the documentation folder 'These variables are pulled from the table TblConfig and these values can 'be edited through the site admin control panel. Do not edit the values in this page. 'Email address the payment should be sent to strPayPalEmail = objConfig("PayPalEmail") strAgentFeatured1MonthCost = objConfig("AgentFeatured1MonthCost") strAgentFeatured3MonthCost = objConfig("AgentFeatured3MonthCost") strAgentFeatured6MonthCost = objConfig("AgentFeatured6MonthCost") strAgentFeatured12MonthCost = objConfig("AgentFeatured12MonthCost") strAgentStandard1MonthCost = objConfig("AgentStandard1MonthCost") strAgentStandard3MonthCost = objConfig("AgentStandard3MonthCost") strAgentStandard6MonthCost = objConfig("AgentStandard6MonthCost") strAgentStandard12MonthCost = objConfig("AgentStandard12MonthCost") strUserFeatured1MonthCost = objConfig("UserFeatured1MonthCost") strUserFeatured3MonthCost = objConfig("UserFeatured3MonthCost") strUserFeatured6MonthCost = objConfig("UserFeatured6MonthCost") strUserFeatured12MonthCost = objConfig("UserFeatured12MonthCost") strUserStandard1MonthCost = objConfig("UserStandard1MonthCost") strUserStandard3MonthCost = objConfig("UserStandard3MonthCost") strUserStandard6MonthCost = objConfig("UserStandard6MonthCost") strUserStandard12MonthCost = objConfig("UserStandard12MonthCost") 'Description of the service to appear on the Featured Listing receipt strFeaturedAdDescription = "Featured Listing on " & strVarWebsite 'Description of the service to appear on the Regular Listing receipt strStandardAdDescription = "Standard Listing on " & strVarWebsite 'Description of the service to appear on the Upgrade Listing receipt strUpgradeAdDescription = "Upgrade Listing on " & strVarWebsite 'Cost you want to charge for the listing strUpgradeAdCost = objConfig("UpgradeAdCost") 'whether ads are paid or free strListingType = objConfig("ListingType") 'Page that the user should return to after making payment for featured ad; 'They should return to page step1F.asp under your domain; 'http://www.yourdomain.com/FSBO Auto Folder/step1F.asp strPayPalReturnPageFeatured = strVarWebsite + "/featuredsuccess.asp" 'Page that the user should return to after making payment for regular ad; 'They should return to page step1.asp under your domain; 'http://www.yourdomain.com/FSBO Auto Folder/step1.asp strPayPalReturnPageRegular = strVarWebsite + "/standardsuccess.asp" 'Page that the user should return to after making payment for regular ad; 'They should return to page step1.asp under your domain; 'http://www.yourdomain.com/FSBO Auto Folder/step1.asp strPayPalReturnPageUpgrade = strVarWebsite + "/upgradesuccess.asp" 'Page that the user should return to if cancelling before completing PayPal payment; 'They should return to page cancel.asp under your domain; 'http://www.yourdomain.com/FSBO Auto Folder/cancel.asp strPayPalCancel = strVarWebsite + "/cancel.asp" %> <% Sub CreateRoomCombo(iCount)%> <% End Sub Sub CreateFlooringCombo(iCount)%> <% End Sub ' Formats a given 10 digit number into a nice looking phone number ' Example: given strNumber of 8005551212 you get (800) 555-1212 Function FormatPhoneNumber(strNumber) Dim strInput ' String to hold our entered number Dim strTemp ' Temporary string to hold our working text Dim strCurrentChar ' Var for storing each character for eval. Dim I ' Looping var ' Uppercase all characters for consistency strInput = UCase(strNumber) ' To be able to handle some pretty bad formatting, strip out ' all characters except for chars A to Z and digits 0 to 9 ' before proceeding. I left in the chars for slogan ' numbers like 1-800-GET-CASH etc... For I = 1 To Len(strInput) strCurrentChar = Mid(strInput, I, 1) ' Numbers (0 to 9) If Asc("0") <= Asc(strCurrentChar) And Asc(strCurrentChar) <= Asc("9") Then strTemp = strTemp & strCurrentChar End If ' Upper Case Chars (A to Z) If Asc("A") <= Asc(strCurrentChar) And Asc(strCurrentChar) <= Asc("Z") Then strTemp = strTemp & strCurrentChar End If Next 'I ' Swap strTemp back to strInput for next set of validation strInput = strTemp strTemp = "" ' Remove leading 1 if applicable If Len(strInput) = 11 And Left(strInput, 1) = "1" Then strInput = Right(strInput, 10) End If ' Error catch to make sure strInput is proper length now that ' we've finished manipulating it. If Not Len(strInput) = 10 Then ' Handle errors. Err.Raise 1, "FormatPhoneNumber function", _ "The phone number to be formatted must be a valid 10 digit US phone number!" End If ' If an error occurred then the rest of this won't get processed. ' Build the output formatted string ' (xxx) xxx-xxxx strTemp = "(" ' "(" strTemp = strTemp & Left(strInput, 3) ' Area code strTemp = strTemp & ") " ' ") " strTemp = strTemp & Mid(strInput, 4, 3) ' Exchange strTemp = strTemp & "-" ' "-" strTemp = strTemp & Right(strInput, 4) ' 4 digit part ' Set return value FormatPhoneNumber = strTemp End Function sub openrs(rs, sql) Set rs = Server.CreateObject("ADODB.Recordset") rs.CursorLocation = adUseServer rs.Open sql, cn, adOpenForwardOnly, adLockReadOnly, adCmdText end sub function ToHTML(strValue) if IsNull(strValue) then ToHTML = "" else ToHTML = Server.HTMLEncode(strValue) end if end function function ToURL(strValue) if IsNull(strValue) then strValue = "" ToURL = Server.URLEncode(strValue) end function function GetValueHTML(rs, strFieldName) GetValueHTML = ToHTML(GetValue(rs, strFieldName)) end function function GetValue(rs, strFieldName) on error resume next if rs is nothing then GetValue = "" elseif (not rs.EOF) and (strFieldName <> "") then res = rs(strFieldName) if isnull(res) then res = "" end if GetValue = res else GetValue = "" end if if bDebug then response.write err.Description end function function GetParam(ParamName) if Request.QueryString(ParamName).Count > 0 then Param = Request.QueryString(ParamName) elseif Request.Form(ParamName).Count > 0 then Param = Request.Form(ParamName) else Param = "" end if if Param = "" then GetParam = Empty else GetParam = Param end if end function Function ToSQL(Value, sType) Param = Value if Param = "" then ToSQL = "Null" else if sType = "Number" then ToSQL = CDbl(Param) else ToSQL = "'" & Replace(Param, "'", "''") & "'" end if end if end function function DLookUp(Table, fName, sWhere) on error resume next Res = cn.execute("select " & fName & " from " & Table & " where " & sWhere).Fields(0).Value if IsNull(Res) then Res = "" DLookUp = Res end function function getCheckBoxValue(sVal, CheckedValue, UnCheckedValue, sType) if isempty(sVal) then if UnCheckedValue = "" then getCheckBoxValue = "Null" else if sType = "Number" then getCheckBoxValue = UnCheckedValue else getCheckBoxValue = "'" & Replace(UnCheckedValue, "'", "''") & "'" end if end if else if CheckedValue = "" then getCheckBoxValue = "Null" else if sType = "Number" then getCheckBoxValue = CheckedValue else getCheckBoxValue = "'" & Replace(CheckedValue, "'", "''") & "'" end if end if end if end function function getValFromLOV(sVal, aArr) sRes = "" if (ubound(aArr) mod 2) = 1 then for i = 0 to ubound(aArr) step 2 if cstr(sVal) = cstr(aArr(i)) then sRes = aArr(i+1) next end if getValFromLOV = sRes end function function get_options(sql,is_search,is_required,selected_value) options_str="" if is_search then options_str=options_str&"" else if is_required then options_str=options_str&"" end if openrs tmprs,sql while not tmprs.EOF id=GetValue(tmprs, 0) value=GetValue(tmprs, 1) selected="" if CStr(id) = CStr(selected_value) then selected = "SELECTED" end if options_str = options_str & "" tmprs.MoveNext wend get_options = options_str end function Function ProceedError() if cn.Errors.Count > 0 then ProceedError = cn.Errors(0).Description & " (" & cn.Errors(0).Source & ")" elseif not (Err.Description = "") then ProceedError = Err.Description else ProceedError = "" end if end Function function CheckSecurity(iLevel) if Session("UserID") = "" then response.redirect("Login.asp?QueryString=" & toURL(request.serverVariables("QUERY_STRING")) & "&ret_page=" & toURL(request.serverVariables("SCRIPT_NAME"))) else if CLng(Session("UserRights")) < CLng(iLevel) then response.redirect("Login.asp?QueryString=" & toURL(request.serverVariables("QUERY_STRING")) & "&ret_page=" & toURL(request.serverVariables("SCRIPT_NAME"))) End if end function %> <% Dim lRoomID(), sRoomName(), lFlooringID(), sFlooringName() lID = Request("ID") strAction = request("cmdAction") strYourName = request("txtYourName") strYourEmail = request("txtYourEmail") strFriendsName = request("txtFriendsName") strFriendsEmail = request("txtFriendsEmail") strComments = request("txtComments") 'displays message if coming from another script page. Msg = request("Message") sSQL = "SELECT * FROM (REFlooring RIGHT JOIN (RERoom RIGHT JOIN (REExterior RIGHT JOIN" sSQL = sSQL & " (REAC RIGHT JOIN (((((REHeat RIGHT JOIN (REGarage RIGHT JOIN" sSQL = sSQL & " (REDriveway RIGHT JOIN REListing ON REDriveway.REDrivewayID = REListing.REDrivewayID)" sSQL = sSQL & " ON REGarage.REGarageID = REListing.REGarageID) ON REHeat.REHeatID = REListing.REHeatID)" sSQL = sSQL & " LEFT JOIN RERoof ON REListing.RERoofID = RERoof.RERoofID) LEFT JOIN" sSQL = sSQL & " RESewer ON REListing.RESewerID = RESewer.RESewerID) LEFT JOIN" sSQL = sSQL & " REStyle ON REListing.REStyleID = REStyle.REStyleID) LEFT JOIN" sSQL = sSQL & " REWater ON REListing.REWaterID = REWater.REWaterID) ON REAC.REACID = REListing.REACID)" sSQL = sSQL & " ON REExterior.REExteriorID = REListing.REExteriorID)" sSQL = sSQL & " ON (RERoom.RERoomID = REListing.REListingRoom8ID)" sSQL = sSQL & " AND (RERoom.RERoomID = REListing.REListingRoom7ID)" sSQL = sSQL & " AND (RERoom.RERoomID = REListing.REListingRoom6ID)" sSQL = sSQL & " AND (RERoom.RERoomID = REListing.REListingRoom5ID)" sSQL = sSQL & " AND (RERoom.RERoomID = REListing.REListingRoom4ID)" sSQL = sSQL & " AND (RERoom.RERoomID = REListing.REListingRoom3ID)" sSQL = sSQL & " AND (RERoom.RERoomID = REListing.REListingRoom2ID)" sSQL = sSQL & " AND (RERoom.RERoomID = REListing.REListingRoom1ID))" sSQL = sSQL & " ON (REFlooring.REFlooringID = REListing.REListingFlooring8ID)" sSQL = sSQL & " AND (REFlooring.REFlooringID = REListing.REListingFlooring7ID)" sSQL = sSQL & " AND (REFlooring.REFlooringID = REListing.REListingFlooring6ID)" sSQL = sSQL & " AND (REFlooring.REFlooringID = REListing.REListingFlooring5ID)" sSQL = sSQL & " AND (REFlooring.REFlooringID = REListing.REListingFlooring4ID)" sSQL = sSQL & " AND (REFlooring.REFlooringID = REListing.REListingFlooring3ID)" sSQL = sSQL & " AND (REFlooring.REFlooringID = REListing.REListingFlooring2ID)" sSQL = sSQL & " AND (REFlooring.REFlooringID = REListing.REListingFlooring1ID))" sSQL = sSQL & " WHERE REListingID=" & lID Set rsRealEstate = objADO.Execute(sSQL) 'Used to dynamically display school info strStateName = rsRealEstate("REListingState") SQL = "SELECT * FROM TblStates where StateName = '" + strStateName + "'" Set rsState = Server.CreateObject("ADODB.Recordset") rsState.Open SQL, objADO, 3, 3 'Used to display agents picture strUserName2 = rsRealEstate("REListingUserName") SQL = "SELECT * FROM TblLogin where UserName = '" + strUserName2 + "'" Set rsAgent = Server.CreateObject("ADODB.Recordset") rsAgent.Open SQL, objADO, 3, 3 sSQL = "SELECT * FROM RERoom ORDER BY RERoomID" Set rsRoom = objADO.Execute(sSQL) Do While Not rsRoom.EOF n = n + 1 ReDim Preserve lRoomID(n), sRoomName(n) lRoomID(n) = rsRoom("RERoomID") sRoomName(n) = rsRoom("RERoomName") rsRoom.MoveNext Loop n = 0 sSQL = "SELECT * FROM REFlooring ORDER BY REFlooringID" Set rsFlooring = objADO.Execute(sSQL) Do While Not rsFlooring.EOF n = n + 1 ReDim Preserve lFlooringID(n), sFlooringName(n) lFlooringID(n) = rsFlooring("REFlooringID") sFlooringName(n) = rsFlooring("REFlooringName") rsFlooring.MoveNext Loop Function GetRoomName(n) For iCount = 1 to UBound(lRoomID) If n = lRoomID(iCount) Then GetRoomName = sRoomName(iCount) Exit Function End If Next End Function Function GetFlooringName(n) For iCount = 1 to UBound(lFlooringID) If n = lFlooringID(iCount) Then GetFlooringName = sFlooringName(iCount) Exit Function End If Next End Function if Request.Form <> "" and strAction <> "" then if strYourName = "" or strYourEmail = "" or strFriendsName = "" or strFriendsEmail = "" then msg = "Fields marked with an * are required." end if 'Checks for a valid email address if strYourEmail <> "" and (instr( strYourEmail, "@") = 0 or instr( strYourEmail, ".") = 0) then Msg = Msg + "
Your Email Address must be in the form account@server.com." end if if strFriendsEmail <> "" and (instr( strFriendsEmail, "@") = 0 or instr( strFriendsEmail, ".") = 0) then Msg = Msg + "
Friend's Email Address must be in the form account@server.com." end if if msg = "" then strSubject = strVarWebsite & " Real Estate Listing sent from " & strYourName strBody = strBody + "Hi " & strFriendsName & vbcrlf strBody = strBody + strYourName & " thought you may be interested in the real estate listing link below:" & vbcrlf strBody = strBody + strVarWebsite + "/detail.asp?ID=" & lid & vbcrlf strBody = strBody + "Additional Comments: " & strComments & vbcrlf Set objNewMail = Server.CreateObject("CDONTS.NewMail") objNewMail.From = strVarEmail objNewMail.To = strFriendsEmail objNewMail.Subject = strSubject objNewMail.BodyFormat = 1 'objNewMail.MailFormat = 1 objNewMail.Body = strBody objNewMail.Send() Msg = strFriendsName & " has been sent your email regarding this listing." strYourName = "" strYourEmail = "" strFriendsName = "" strFriendsEmail = "" strComments = "" end if end if %> <% 'Database Connection String; 'Server.MapPath = the location of the database on the server 'please change the path to the correct path on your server Set objADO = Server.CreateObject("ADODB.Connection") sDSN = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("db\fsboREplus.mdb") & ";" objADO.Open sDSN 'Contact Variables; Used in contact.asp and other pages that contain the contact info. 'These variables are pulled from the table TblConfig and these values can 'be edited through the site admin control panel. Do not edit the values in this page. ' Create a recordset object to store specific table information Set objConfig = Server.CreateObject("ADODB.Recordset") 'Establish what records you want selected for the SQL query string SQL = "Select * From TblConfig" 'Set the recordset object equal to the SQL query string objConfig.Open SQL, objADO, 1, 3 strVarCompany = objConfig("Company") strVarAddress = objConfig("CompanyAddress") strVarCity = objConfig("CompanyCity") strVarState = objConfig("CompanyState") strVarZip = objConfig("CompanyZip") strVarCountry = objConfig("CompanyCountry") strVarEmail = objConfig("CompanyEmail") strVarPhone = objConfig("CompanyPhone") strVarFax = objConfig("CompanyFax") strVarMainContact = objConfig("CompanyContact") strVarWebsite = objConfig("CompanyWebsite") strVarBGColor = objConfig("BGColor") strSlogan = objConfig("Slogan") strOfferAdvertising = objConfig("OfferAdvertising") str1000ImpressionsAdCost = objConfig("1000ImpressionsCost") str5000ImpressionsAdCost = objConfig("5000ImpressionsCost") str10000ImpressionsAdCost = objConfig("10000ImpressionsCost") str50000ImpressionsAdCost = objConfig("50000ImpressionsCost") str100000ImpressionsAdCost = objConfig("100000ImpressionsCost") strServiceType = objConfig("ServiceType") strServiceAdCost = objConfig("ServiceAdCost") strAgentList = objConfig("AgentList") strLogo = objConfig("logo") strKeywords = objConfig("Keywords") strMetaDescription = objConfig("MetaDescription") 'PAYPAL VARIABLES - See PaypalCode.doc located in the documentation folder 'These variables are pulled from the table TblConfig and these values can 'be edited through the site admin control panel. Do not edit the values in this page. 'Email address the payment should be sent to strPayPalEmail = objConfig("PayPalEmail") strAgentFeatured1MonthCost = objConfig("AgentFeatured1MonthCost") strAgentFeatured3MonthCost = objConfig("AgentFeatured3MonthCost") strAgentFeatured6MonthCost = objConfig("AgentFeatured6MonthCost") strAgentFeatured12MonthCost = objConfig("AgentFeatured12MonthCost") strAgentStandard1MonthCost = objConfig("AgentStandard1MonthCost") strAgentStandard3MonthCost = objConfig("AgentStandard3MonthCost") strAgentStandard6MonthCost = objConfig("AgentStandard6MonthCost") strAgentStandard12MonthCost = objConfig("AgentStandard12MonthCost") strUserFeatured1MonthCost = objConfig("UserFeatured1MonthCost") strUserFeatured3MonthCost = objConfig("UserFeatured3MonthCost") strUserFeatured6MonthCost = objConfig("UserFeatured6MonthCost") strUserFeatured12MonthCost = objConfig("UserFeatured12MonthCost") strUserStandard1MonthCost = objConfig("UserStandard1MonthCost") strUserStandard3MonthCost = objConfig("UserStandard3MonthCost") strUserStandard6MonthCost = objConfig("UserStandard6MonthCost") strUserStandard12MonthCost = objConfig("UserStandard12MonthCost") 'Description of the service to appear on the Featured Listing receipt strFeaturedAdDescription = "Featured Listing on " & strVarWebsite 'Description of the service to appear on the Regular Listing receipt strStandardAdDescription = "Standard Listing on " & strVarWebsite 'Description of the service to appear on the Upgrade Listing receipt strUpgradeAdDescription = "Upgrade Listing on " & strVarWebsite 'Cost you want to charge for the listing strUpgradeAdCost = objConfig("UpgradeAdCost") 'whether ads are paid or free strListingType = objConfig("ListingType") 'Page that the user should return to after making payment for featured ad; 'They should return to page step1F.asp under your domain; 'http://www.yourdomain.com/FSBO Auto Folder/step1F.asp strPayPalReturnPageFeatured = strVarWebsite + "/featuredsuccess.asp" 'Page that the user should return to after making payment for regular ad; 'They should return to page step1.asp under your domain; 'http://www.yourdomain.com/FSBO Auto Folder/step1.asp strPayPalReturnPageRegular = strVarWebsite + "/standardsuccess.asp" 'Page that the user should return to after making payment for regular ad; 'They should return to page step1.asp under your domain; 'http://www.yourdomain.com/FSBO Auto Folder/step1.asp strPayPalReturnPageUpgrade = strVarWebsite + "/upgradesuccess.asp" 'Page that the user should return to if cancelling before completing PayPal payment; 'They should return to page cancel.asp under your domain; 'http://www.yourdomain.com/FSBO Auto Folder/cancel.asp strPayPalCancel = strVarWebsite + "/cancel.asp" %> <% Sub CreateRoomCombo(iCount)%> <% End Sub Sub CreateFlooringCombo(iCount)%> <% End Sub ' Formats a given 10 digit number into a nice looking phone number ' Example: given strNumber of 8005551212 you get (800) 555-1212 Function FormatPhoneNumber(strNumber) Dim strInput ' String to hold our entered number Dim strTemp ' Temporary string to hold our working text Dim strCurrentChar ' Var for storing each character for eval. Dim I ' Looping var ' Uppercase all characters for consistency strInput = UCase(strNumber) ' To be able to handle some pretty bad formatting, strip out ' all characters except for chars A to Z and digits 0 to 9 ' before proceeding. I left in the chars for slogan ' numbers like 1-800-GET-CASH etc... For I = 1 To Len(strInput) strCurrentChar = Mid(strInput, I, 1) ' Numbers (0 to 9) If Asc("0") <= Asc(strCurrentChar) And Asc(strCurrentChar) <= Asc("9") Then strTemp = strTemp & strCurrentChar End If ' Upper Case Chars (A to Z) If Asc("A") <= Asc(strCurrentChar) And Asc(strCurrentChar) <= Asc("Z") Then strTemp = strTemp & strCurrentChar End If Next 'I ' Swap strTemp back to strInput for next set of validation strInput = strTemp strTemp = "" ' Remove leading 1 if applicable If Len(strInput) = 11 And Left(strInput, 1) = "1" Then strInput = Right(strInput, 10) End If ' Error catch to make sure strInput is proper length now that ' we've finished manipulating it. If Not Len(strInput) = 10 Then ' Handle errors. Err.Raise 1, "FormatPhoneNumber function", _ "The phone number to be formatted must be a valid 10 digit US phone number!" End If ' If an error occurred then the rest of this won't get processed. ' Build the output formatted string ' (xxx) xxx-xxxx strTemp = "(" ' "(" strTemp = strTemp & Left(strInput, 3) ' Area code strTemp = strTemp & ") " ' ") " strTemp = strTemp & Mid(strInput, 4, 3) ' Exchange strTemp = strTemp & "-" ' "-" strTemp = strTemp & Right(strInput, 4) ' 4 digit part ' Set return value FormatPhoneNumber = strTemp End Function sub openrs(rs, sql) Set rs = Server.CreateObject("ADODB.Recordset") rs.CursorLocation = adUseServer rs.Open sql, cn, adOpenForwardOnly, adLockReadOnly, adCmdText end sub function ToHTML(strValue) if IsNull(strValue) then ToHTML = "" else ToHTML = Server.HTMLEncode(strValue) end if end function function ToURL(strValue) if IsNull(strValue) then strValue = "" ToURL = Server.URLEncode(strValue) end function function GetValueHTML(rs, strFieldName) GetValueHTML = ToHTML(GetValue(rs, strFieldName)) end function function GetValue(rs, strFieldName) on error resume next if rs is nothing then GetValue = "" elseif (not rs.EOF) and (strFieldName <> "") then res = rs(strFieldName) if isnull(res) then res = "" end if GetValue = res else GetValue = "" end if if bDebug then response.write err.Description end function function GetParam(ParamName) if Request.QueryString(ParamName).Count > 0 then Param = Request.QueryString(ParamName) elseif Request.Form(ParamName).Count > 0 then Param = Request.Form(ParamName) else Param = "" end if if Param = "" then GetParam = Empty else GetParam = Param end if end function Function ToSQL(Value, sType) Param = Value if Param = "" then ToSQL = "Null" else if sType = "Number" then ToSQL = CDbl(Param) else ToSQL = "'" & Replace(Param, "'", "''") & "'" end if end if end function function DLookUp(Table, fName, sWhere) on error resume next Res = cn.execute("select " & fName & " from " & Table & " where " & sWhere).Fields(0).Value if IsNull(Res) then Res = "" DLookUp = Res end function function getCheckBoxValue(sVal, CheckedValue, UnCheckedValue, sType) if isempty(sVal) then if UnCheckedValue = "" then getCheckBoxValue = "Null" else if sType = "Number" then getCheckBoxValue = UnCheckedValue else getCheckBoxValue = "'" & Replace(UnCheckedValue, "'", "''") & "'" end if end if else if CheckedValue = "" then getCheckBoxValue = "Null" else if sType = "Number" then getCheckBoxValue = CheckedValue else getCheckBoxValue = "'" & Replace(CheckedValue, "'", "''") & "'" end if end if end if end function function getValFromLOV(sVal, aArr) sRes = "" if (ubound(aArr) mod 2) = 1 then for i = 0 to ubound(aArr) step 2 if cstr(sVal) = cstr(aArr(i)) then sRes = aArr(i+1) next end if getValFromLOV = sRes end function function get_options(sql,is_search,is_required,selected_value) options_str="" if is_search then options_str=options_str&"" else if is_required then options_str=options_str&"" end if openrs tmprs,sql while not tmprs.EOF id=GetValue(tmprs, 0) value=GetValue(tmprs, 1) selected="" if CStr(id) = CStr(selected_value) then selected = "SELECTED" end if options_str = options_str & "" tmprs.MoveNext wend get_options = options_str end function Function ProceedError() if cn.Errors.Count > 0 then ProceedError = cn.Errors(0).Description & " (" & cn.Errors(0).Source & ")" elseif not (Err.Description = "") then ProceedError = Err.Description else ProceedError = "" end if end Function function CheckSecurity(iLevel) if Session("UserID") = "" then response.redirect("Login.asp?QueryString=" & toURL(request.serverVariables("QUERY_STRING")) & "&ret_page=" & toURL(request.serverVariables("SCRIPT_NAME"))) else if CLng(Session("UserRights")) < CLng(iLevel) then response.redirect("Login.asp?QueryString=" & toURL(request.serverVariables("QUERY_STRING")) & "&ret_page=" & toURL(request.serverVariables("SCRIPT_NAME"))) End if end function %> <%= strVarCompany %> - <%= objConfig("Keywords") %> <% strUserName = session("UserName") %>
<% 'Database Connection String; 'Server.MapPath = the location of the database on the server 'please change the path to the correct path on your server Set objADO = Server.CreateObject("ADODB.Connection") sDSN = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("db\fsboREplus.mdb") & ";" objADO.Open sDSN 'Contact Variables; Used in contact.asp and other pages that contain the contact info. 'These variables are pulled from the table TblConfig and these values can 'be edited through the site admin control panel. Do not edit the values in this page. ' Create a recordset object to store specific table information Set objConfig = Server.CreateObject("ADODB.Recordset") 'Establish what records you want selected for the SQL query string SQL = "Select * From TblConfig" 'Set the recordset object equal to the SQL query string objConfig.Open SQL, objADO, 1, 3 strVarCompany = objConfig("Company") strVarAddress = objConfig("CompanyAddress") strVarCity = objConfig("CompanyCity") strVarState = objConfig("CompanyState") strVarZip = objConfig("CompanyZip") strVarCountry = objConfig("CompanyCountry") strVarEmail = objConfig("CompanyEmail") strVarPhone = objConfig("CompanyPhone") strVarFax = objConfig("CompanyFax") strVarMainContact = objConfig("CompanyContact") strVarWebsite = objConfig("CompanyWebsite") strVarBGColor = objConfig("BGColor") strSlogan = objConfig("Slogan") strOfferAdvertising = objConfig("OfferAdvertising") str1000ImpressionsAdCost = objConfig("1000ImpressionsCost") str5000ImpressionsAdCost = objConfig("5000ImpressionsCost") str10000ImpressionsAdCost = objConfig("10000ImpressionsCost") str50000ImpressionsAdCost = objConfig("50000ImpressionsCost") str100000ImpressionsAdCost = objConfig("100000ImpressionsCost") strServiceType = objConfig("ServiceType") strServiceAdCost = objConfig("ServiceAdCost") strAgentList = objConfig("AgentList") strLogo = objConfig("logo") strKeywords = objConfig("Keywords") strMetaDescription = objConfig("MetaDescription") 'PAYPAL VARIABLES - See PaypalCode.doc located in the documentation folder 'These variables are pulled from the table TblConfig and these values can 'be edited through the site admin control panel. Do not edit the values in this page. 'Email address the payment should be sent to strPayPalEmail = objConfig("PayPalEmail") strAgentFeatured1MonthCost = objConfig("AgentFeatured1MonthCost") strAgentFeatured3MonthCost = objConfig("AgentFeatured3MonthCost") strAgentFeatured6MonthCost = objConfig("AgentFeatured6MonthCost") strAgentFeatured12MonthCost = objConfig("AgentFeatured12MonthCost") strAgentStandard1MonthCost = objConfig("AgentStandard1MonthCost") strAgentStandard3MonthCost = objConfig("AgentStandard3MonthCost") strAgentStandard6MonthCost = objConfig("AgentStandard6MonthCost") strAgentStandard12MonthCost = objConfig("AgentStandard12MonthCost") strUserFeatured1MonthCost = objConfig("UserFeatured1MonthCost") strUserFeatured3MonthCost = objConfig("UserFeatured3MonthCost") strUserFeatured6MonthCost = objConfig("UserFeatured6MonthCost") strUserFeatured12MonthCost = objConfig("UserFeatured12MonthCost") strUserStandard1MonthCost = objConfig("UserStandard1MonthCost") strUserStandard3MonthCost = objConfig("UserStandard3MonthCost") strUserStandard6MonthCost = objConfig("UserStandard6MonthCost") strUserStandard12MonthCost = objConfig("UserStandard12MonthCost") 'Description of the service to appear on the Featured Listing receipt strFeaturedAdDescription = "Featured Listing on " & strVarWebsite 'Description of the service to appear on the Regular Listing receipt strStandardAdDescription = "Standard Listing on " & strVarWebsite 'Description of the service to appear on the Upgrade Listing receipt strUpgradeAdDescription = "Upgrade Listing on " & strVarWebsite 'Cost you want to charge for the listing strUpgradeAdCost = objConfig("UpgradeAdCost") 'whether ads are paid or free strListingType = objConfig("ListingType") 'Page that the user should return to after making payment for featured ad; 'They should return to page step1F.asp under your domain; 'http://www.yourdomain.com/FSBO Auto Folder/step1F.asp strPayPalReturnPageFeatured = strVarWebsite + "/featuredsuccess.asp" 'Page that the user should return to after making payment for regular ad; 'They should return to page step1.asp under your domain; 'http://www.yourdomain.com/FSBO Auto Folder/step1.asp strPayPalReturnPageRegular = strVarWebsite + "/standardsuccess.asp" 'Page that the user should return to after making payment for regular ad; 'They should return to page step1.asp under your domain; 'http://www.yourdomain.com/FSBO Auto Folder/step1.asp strPayPalReturnPageUpgrade = strVarWebsite + "/upgradesuccess.asp" 'Page that the user should return to if cancelling before completing PayPal payment; 'They should return to page cancel.asp under your domain; 'http://www.yourdomain.com/FSBO Auto Folder/cancel.asp strPayPalCancel = strVarWebsite + "/cancel.asp" %> <% Sub CreateRoomCombo(iCount)%> <% End Sub Sub CreateFlooringCombo(iCount)%> <% End Sub ' Formats a given 10 digit number into a nice looking phone number ' Example: given strNumber of 8005551212 you get (800) 555-1212 Function FormatPhoneNumber(strNumber) Dim strInput ' String to hold our entered number Dim strTemp ' Temporary string to hold our working text Dim strCurrentChar ' Var for storing each character for eval. Dim I ' Looping var ' Uppercase all characters for consistency strInput = UCase(strNumber) ' To be able to handle some pretty bad formatting, strip out ' all characters except for chars A to Z and digits 0 to 9 ' before proceeding. I left in the chars for slogan ' numbers like 1-800-GET-CASH etc... For I = 1 To Len(strInput) strCurrentChar = Mid(strInput, I, 1) ' Numbers (0 to 9) If Asc("0") <= Asc(strCurrentChar) And Asc(strCurrentChar) <= Asc("9") Then strTemp = strTemp & strCurrentChar End If ' Upper Case Chars (A to Z) If Asc("A") <= Asc(strCurrentChar) And Asc(strCurrentChar) <= Asc("Z") Then strTemp = strTemp & strCurrentChar End If Next 'I ' Swap strTemp back to strInput for next set of validation strInput = strTemp strTemp = "" ' Remove leading 1 if applicable If Len(strInput) = 11 And Left(strInput, 1) = "1" Then strInput = Right(strInput, 10) End If ' Error catch to make sure strInput is proper length now that ' we've finished manipulating it. If Not Len(strInput) = 10 Then ' Handle errors. Err.Raise 1, "FormatPhoneNumber function", _ "The phone number to be formatted must be a valid 10 digit US phone number!" End If ' If an error occurred then the rest of this won't get processed. ' Build the output formatted string ' (xxx) xxx-xxxx strTemp = "(" ' "(" strTemp = strTemp & Left(strInput, 3) ' Area code strTemp = strTemp & ") " ' ") " strTemp = strTemp & Mid(strInput, 4, 3) ' Exchange strTemp = strTemp & "-" ' "-" strTemp = strTemp & Right(strInput, 4) ' 4 digit part ' Set return value FormatPhoneNumber = strTemp End Function sub openrs(rs, sql) Set rs = Server.CreateObject("ADODB.Recordset") rs.CursorLocation = adUseServer rs.Open sql, cn, adOpenForwardOnly, adLockReadOnly, adCmdText end sub function ToHTML(strValue) if IsNull(strValue) then ToHTML = "" else ToHTML = Server.HTMLEncode(strValue) end if end function function ToURL(strValue) if IsNull(strValue) then strValue = "" ToURL = Server.URLEncode(strValue) end function function GetValueHTML(rs, strFieldName) GetValueHTML = ToHTML(GetValue(rs, strFieldName)) end function function GetValue(rs, strFieldName) on error resume next if rs is nothing then GetValue = "" elseif (not rs.EOF) and (strFieldName <> "") then res = rs(strFieldName) if isnull(res) then res = "" end if GetValue = res else GetValue = "" end if if bDebug then response.write err.Description end function function GetParam(ParamName) if Request.QueryString(ParamName).Count > 0 then Param = Request.QueryString(ParamName) elseif Request.Form(ParamName).Count > 0 then Param = Request.Form(ParamName) else Param = "" end if if Param = "" then GetParam = Empty else GetParam = Param end if end function Function ToSQL(Value, sType) Param = Value if Param = "" then ToSQL = "Null" else if sType = "Number" then ToSQL = CDbl(Param) else ToSQL = "'" & Replace(Param, "'", "''") & "'" end if end if end function function DLookUp(Table, fName, sWhere) on error resume next Res = cn.execute("select " & fName & " from " & Table & " where " & sWhere).Fields(0).Value if IsNull(Res) then Res = "" DLookUp = Res end function function getCheckBoxValue(sVal, CheckedValue, UnCheckedValue, sType) if isempty(sVal) then if UnCheckedValue = "" then getCheckBoxValue = "Null" else if sType = "Number" then getCheckBoxValue = UnCheckedValue else getCheckBoxValue = "'" & Replace(UnCheckedValue, "'", "''") & "'" end if end if else if CheckedValue = "" then getCheckBoxValue = "Null" else if sType = "Number" then getCheckBoxValue = CheckedValue else getCheckBoxValue = "'" & Replace(CheckedValue, "'", "''") & "'" end if end if end if end function function getValFromLOV(sVal, aArr) sRes = "" if (ubound(aArr) mod 2) = 1 then for i = 0 to ubound(aArr) step 2 if cstr(sVal) = cstr(aArr(i)) then sRes = aArr(i+1) next end if getValFromLOV = sRes end function function get_options(sql,is_search,is_required,selected_value) options_str="" if is_search then options_str=options_str&"" else if is_required then options_str=options_str&"" end if openrs tmprs,sql while not tmprs.EOF id=GetValue(tmprs, 0) value=GetValue(tmprs, 1) selected="" if CStr(id) = CStr(selected_value) then selected = "SELECTED" end if options_str = options_str & "" tmprs.MoveNext wend get_options = options_str end function Function ProceedError() if cn.Errors.Count > 0 then ProceedError = cn.Errors(0).Description & " (" & cn.Errors(0).Source & ")" elseif not (Err.Description = "") then ProceedError = Err.Description else ProceedError = "" end if end Function function CheckSecurity(iLevel) if Session("UserID") = "" then response.redirect("Login.asp?QueryString=" & toURL(request.serverVariables("QUERY_STRING")) & "&ret_page=" & toURL(request.serverVariables("SCRIPT_NAME"))) else if CLng(Session("UserRights")) < CLng(iLevel) then response.redirect("Login.asp?QueryString=" & toURL(request.serverVariables("QUERY_STRING")) & "&ret_page=" & toURL(request.serverVariables("SCRIPT_NAME"))) End if end function %> <% TodayDate = Now() TodayDate = FormatDateTime(TodayDate, VBShortDate) Set RS=Server.CreateObject("ADODB.RecordSet") SQL = vbNullString SQL = SQL & "UPDATE Clients " SQL = SQL & "SET Status='DontShow' WHERE ImpPur < ImpNow" objADO.execute(SQL) Set RS = Nothing Set RS=Server.CreateObject("ADODB.RecordSet") Query = "SELECT * FROM Clients WHERE Status='Show' AND StartDate <= #" & TodayDate & "#" RS.Open Query, objADO, 3, 3 IF (RS.EOF) THEN ShowBanner = "default" %> <% Else rndMax = CInt(RS.RecordCount) RS.MoveFirst Do While Not RS.EOF RS.MoveNext Loop RS.MoveFirst Randomize Timer rndNumber = Int(RND * rndMax) RS.Move rndNumber Id = RS("AdID") UrlTo = RS("LinkTo") GetImg = RS("ImgUrl") WriteSize1 = RS("SizeOf1") WriteSize2 = RS("SizeOf2") DisText = RS("TextUnder") ImpNow = RS("ImpNow") ImpNewNow = ImpNow + 1 Set RS = Nothing Set RS=Server.CreateObject("ADODB.RecordSet") SQL = vbNullString SQL = SQL & "UPDATE Clients " SQL = SQL & "SET ImpNow="&ImpNewNow&" WHERE AdID="&Id&"" objADO.execute(SQL) Set RS = Nothing End If %> <%=DisText%>
Home | Get Listed! | <% if strUserName = "" then %> Create An Account | <% end if %> <% if strUserName = "" then %> Member Login <% end if %> <% if strUserName <> "" then %> Logout <% end if %> | <% if strUserName <> "" then %> Control Panel | <% end if %> Search Listings | View Featured | Newest Properties | Testimonials
Seller Tools | Buyer Tools | Find An Agent | Services Directory | Mortgage Center <% if strOfferAdvertising = "Yes" then %> | Advertising <% end if %> | News | About Us | Contact
<% strMailSubmit = request("cmdMailSubmit") strSearchId = request("cmdSearchId") strEmail = request("txtEmail") strSiteId = request("txtSiteId") 'This code only runs if the submit button is clicked if Request.Form <> "" and strSearchId <> "" then if strSiteId = "" then SiteIdmsg = "You must enter a site id to search." end if if SiteIdmsg = "" then ' Create a recordset object to store specific table information Set objSearch = Server.CreateObject("ADODB.Recordset") 'Establish what records you want selected for the SQL query string SQL = "Select * From REListing where REListingId=" & strSiteId 'Set the recordset object equal to the SQL query string objSearch.Open SQL, objADO, 1, 3 if objSearch.EOF then SiteIdmsg = "Site Id " & strSiteId & " does not exist in our database. Please try again." else Response.Redirect "detail.asp?Id=" & strSiteId end if end if end if if Request.Form <> "" and strMailSubmit <> "" then if strEmail = "" then strMailWarning = "You must type an email address to join our mailing list." end if 'Make sure a valid email address if strEmail <> "" and (instr( strEmail, "@") = 0 or instr( strEmail, ".") = 0) then strMailWarning = "
Email Address must be in the form account@server.com." end if if strMailWarning = "" then ' Create a recordset object to store specific table information Set objEmail = Server.CreateObject("ADODB.Recordset") 'Establish what records you want selected for the SQL query string SQL = "Select * From TblEmail where (EmailAddress = '" + strEmail + "')" 'Set the recordset object equal to the SQL query string objEmail.Open SQL, objADO, 1, 3 if objEmail.EOF then objEmail.addnew objEmail("EmailAddress") = strEmail objEmail("DateAdded") = Date() objEmail.update strMailWarning ="
Your email address has been sucessfully added to our mailing list." 'Mail STATING you hate to see them go and link if they want to subscribe again. ' Create a recordset object to store specific table information strSubject = strVarCompany & " Mail Subscription Request" strBody = strBody + "Your email address has been successfully added to our mailing list." &vbcrlf strBody = strBody + "Thank you for being a subscriber." & vbcrlf strBody = strBody + "To unsubscribe, use the url " & strVarWebsite & "." & vbcrlf strBody = strBody + "Again thank you for being a subscriber." Set objNewMail = Server.CreateObject("CDONTS.NewMail") objNewMail.From = strVarEmail objNewMail.To = strEmail objNewMail.Subject = strSubject objNewMail.BodyFormat = 1 'objNewMail.MailFormat = 1 objNewMail.Body = strBody objNewMail.Send() else strMailWarning = "
That Email Address already joined our mailing list." end if end if end if %>

FEATURED PROPERTY LISTINGS
Feature your property on our site and sell fast!
Click Here to find out how.
<% 'Database Connection String; 'Server.MapPath = the location of the database on the server 'please change the path to the correct path on your server Set objADO = Server.CreateObject("ADODB.Connection") sDSN = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("db\fsboREplus.mdb") & ";" objADO.Open sDSN 'Contact Variables; Used in contact.asp and other pages that contain the contact info. 'These variables are pulled from the table TblConfig and these values can 'be edited through the site admin control panel. Do not edit the values in this page. ' Create a recordset object to store specific table information Set objConfig = Server.CreateObject("ADODB.Recordset") 'Establish what records you want selected for the SQL query string SQL = "Select * From TblConfig" 'Set the recordset object equal to the SQL query string objConfig.Open SQL, objADO, 1, 3 strVarCompany = objConfig("Company") strVarAddress = objConfig("CompanyAddress") strVarCity = objConfig("CompanyCity") strVarState = objConfig("CompanyState") strVarZip = objConfig("CompanyZip") strVarCountry = objConfig("CompanyCountry") strVarEmail = objConfig("CompanyEmail") strVarPhone = objConfig("CompanyPhone") strVarFax = objConfig("CompanyFax") strVarMainContact = objConfig("CompanyContact") strVarWebsite = objConfig("CompanyWebsite") strVarBGColor = objConfig("BGColor") strSlogan = objConfig("Slogan") strOfferAdvertising = objConfig("OfferAdvertising") str1000ImpressionsAdCost = objConfig("1000ImpressionsCost") str5000ImpressionsAdCost = objConfig("5000ImpressionsCost") str10000ImpressionsAdCost = objConfig("10000ImpressionsCost") str50000ImpressionsAdCost = objConfig("50000ImpressionsCost") str100000ImpressionsAdCost = objConfig("100000ImpressionsCost") strServiceType = objConfig("ServiceType") strServiceAdCost = objConfig("ServiceAdCost") strAgentList = objConfig("AgentList") strLogo = objConfig("logo") strKeywords = objConfig("Keywords") strMetaDescription = objConfig("MetaDescription") 'PAYPAL VARIABLES - See PaypalCode.doc located in the documentation folder 'These variables are pulled from the table TblConfig and these values can 'be edited through the site admin control panel. Do not edit the values in this page. 'Email address the payment should be sent to strPayPalEmail = objConfig("PayPalEmail") strAgentFeatured1MonthCost = objConfig("AgentFeatured1MonthCost") strAgentFeatured3MonthCost = objConfig("AgentFeatured3MonthCost") strAgentFeatured6MonthCost = objConfig("AgentFeatured6MonthCost") strAgentFeatured12MonthCost = objConfig("AgentFeatured12MonthCost") strAgentStandard1MonthCost = objConfig("AgentStandard1MonthCost") strAgentStandard3MonthCost = objConfig("AgentStandard3MonthCost") strAgentStandard6MonthCost = objConfig("AgentStandard6MonthCost") strAgentStandard12MonthCost = objConfig("AgentStandard12MonthCost") strUserFeatured1MonthCost = objConfig("UserFeatured1MonthCost") strUserFeatured3MonthCost = objConfig("UserFeatured3MonthCost") strUserFeatured6MonthCost = objConfig("UserFeatured6MonthCost") strUserFeatured12MonthCost = objConfig("UserFeatured12MonthCost") strUserStandard1MonthCost = objConfig("UserStandard1MonthCost") strUserStandard3MonthCost = objConfig("UserStandard3MonthCost") strUserStandard6MonthCost = objConfig("UserStandard6MonthCost") strUserStandard12MonthCost = objConfig("UserStandard12MonthCost") 'Description of the service to appear on the Featured Listing receipt strFeaturedAdDescription = "Featured Listing on " & strVarWebsite 'Description of the service to appear on the Regular Listing receipt strStandardAdDescription = "Standard Listing on " & strVarWebsite 'Description of the service to appear on the Upgrade Listing receipt strUpgradeAdDescription = "Upgrade Listing on " & strVarWebsite 'Cost you want to charge for the listing strUpgradeAdCost = objConfig("UpgradeAdCost") 'whether ads are paid or free strListingType = objConfig("ListingType") 'Page that the user should return to after making payment for featured ad; 'They should return to page step1F.asp under your domain; 'http://www.yourdomain.com/FSBO Auto Folder/step1F.asp strPayPalReturnPageFeatured = strVarWebsite + "/featuredsuccess.asp" 'Page that the user should return to after making payment for regular ad; 'They should return to page step1.asp under your domain; 'http://www.yourdomain.com/FSBO Auto Folder/step1.asp strPayPalReturnPageRegular = strVarWebsite + "/standardsuccess.asp" 'Page that the user should return to after making payment for regular ad; 'They should return to page step1.asp under your domain; 'http://www.yourdomain.com/FSBO Auto Folder/step1.asp strPayPalReturnPageUpgrade = strVarWebsite + "/upgradesuccess.asp" 'Page that the user should return to if cancelling before completing PayPal payment; 'They should return to page cancel.asp under your domain; 'http://www.yourdomain.com/FSBO Auto Folder/cancel.asp strPayPalCancel = strVarWebsite + "/cancel.asp" %> <% Sub CreateRoomCombo(iCount)%> <% End Sub Sub CreateFlooringCombo(iCount)%> <% End Sub ' Formats a given 10 digit number into a nice looking phone number ' Example: given strNumber of 8005551212 you get (800) 555-1212 Function FormatPhoneNumber(strNumber) Dim strInput ' String to hold our entered number Dim strTemp ' Temporary string to hold our working text Dim strCurrentChar ' Var for storing each character for eval. Dim I ' Looping var ' Uppercase all characters for consistency strInput = UCase(strNumber) ' To be able to handle some pretty bad formatting, strip out ' all characters except for chars A to Z and digits 0 to 9 ' before proceeding. I left in the chars for slogan ' numbers like 1-800-GET-CASH etc... For I = 1 To Len(strInput) strCurrentChar = Mid(strInput, I, 1) ' Numbers (0 to 9) If Asc("0") <= Asc(strCurrentChar) And Asc(strCurrentChar) <= Asc("9") Then strTemp = strTemp & strCurrentChar End If ' Upper Case Chars (A to Z) If Asc("A") <= Asc(strCurrentChar) And Asc(strCurrentChar) <= Asc("Z") Then strTemp = strTemp & strCurrentChar End If Next 'I ' Swap strTemp back to strInput for next set of validation strInput = strTemp strTemp = "" ' Remove leading 1 if applicable If Len(strInput) = 11 And Left(strInput, 1) = "1" Then strInput = Right(strInput, 10) End If ' Error catch to make sure strInput is proper length now that ' we've finished manipulating it. If Not Len(strInput) = 10 Then ' Handle errors. Err.Raise 1, "FormatPhoneNumber function", _ "The phone number to be formatted must be a valid 10 digit US phone number!" End If ' If an error occurred then the rest of this won't get processed. ' Build the output formatted string ' (xxx) xxx-xxxx strTemp = "(" ' "(" strTemp = strTemp & Left(strInput, 3) ' Area code strTemp = strTemp & ") " ' ") " strTemp = strTemp & Mid(strInput, 4, 3) ' Exchange strTemp = strTemp & "-" ' "-" strTemp = strTemp & Right(strInput, 4) ' 4 digit part ' Set return value FormatPhoneNumber = strTemp End Function sub openrs(rs, sql) Set rs = Server.CreateObject("ADODB.Recordset") rs.CursorLocation = adUseServer rs.Open sql, cn, adOpenForwardOnly, adLockReadOnly, adCmdText end sub function ToHTML(strValue) if IsNull(strValue) then ToHTML = "" else ToHTML = Server.HTMLEncode(strValue) end if end function function ToURL(strValue) if IsNull(strValue) then strValue = "" ToURL = Server.URLEncode(strValue) end function function GetValueHTML(rs, strFieldName) GetValueHTML = ToHTML(GetValue(rs, strFieldName)) end function function GetValue(rs, strFieldName) on error resume next if rs is nothing then GetValue = "" elseif (not rs.EOF) and (strFieldName <> "") then res = rs(strFieldName) if isnull(res) then res = "" end if GetValue = res else GetValue = "" end if if bDebug then response.write err.Description end function function GetParam(ParamName) if Request.QueryString(ParamName).Count > 0 then Param = Request.QueryString(ParamName) elseif Request.Form(ParamName).Count > 0 then Param = Request.Form(ParamName) else Param = "" end if if Param = "" then GetParam = Empty else GetParam = Param end if end function Function ToSQL(Value, sType) Param = Value if Param = "" then ToSQL = "Null" else if sType = "Number" then ToSQL = CDbl(Param) else ToSQL = "'" & Replace(Param, "'", "''") & "'" end if end if end function function DLookUp(Table, fName, sWhere) on error resume next Res = cn.execute("select " & fName & " from " & Table & " where " & sWhere).Fields(0).Value if IsNull(Res) then Res = "" DLookUp = Res end function function getCheckBoxValue(sVal, CheckedValue, UnCheckedValue, sType) if isempty(sVal) then if UnCheckedValue = "" then getCheckBoxValue = "Null" else if sType = "Number" then getCheckBoxValue = UnCheckedValue else getCheckBoxValue = "'" & Replace(UnCheckedValue, "'", "''") & "'" end if end if else if CheckedValue = "" then getCheckBoxValue = "Null" else if sType = "Number" then getCheckBoxValue = CheckedValue else getCheckBoxValue = "'" & Replace(CheckedValue, "'", "''") & "'" end if end if end if end function function getValFromLOV(sVal, aArr) sRes = "" if (ubound(aArr) mod 2) = 1 then for i = 0 to ubound(aArr) step 2 if cstr(sVal) = cstr(aArr(i)) then sRes = aArr(i+1) next end if getValFromLOV = sRes end function function get_options(sql,is_search,is_required,selected_value) options_str="" if is_search then options_str=options_str&"" else if is_required then options_str=options_str&"" end if openrs tmprs,sql while not tmprs.EOF id=GetValue(tmprs, 0) value=GetValue(tmprs, 1) selected="" if CStr(id) = CStr(selected_value) then selected = "SELECTED" end if options_str = options_str & "" tmprs.MoveNext wend get_options = options_str end function Function ProceedError() if cn.Errors.Count > 0 then ProceedError = cn.Errors(0).Description & " (" & cn.Errors(0).Source & ")" elseif not (Err.Description = "") then ProceedError = Err.Description else ProceedError = "" end if end Function function CheckSecurity(iLevel) if Session("UserID") = "" then response.redirect("Login.asp?QueryString=" & toURL(request.serverVariables("QUERY_STRING")) & "&ret_page=" & toURL(request.serverVariables("SCRIPT_NAME"))) else if CLng(Session("UserRights")) < CLng(iLevel) then response.redirect("Login.asp?QueryString=" & toURL(request.serverVariables("QUERY_STRING")) & "&ret_page=" & toURL(request.serverVariables("SCRIPT_NAME"))) End if end function %> <% sSQL = "SELECT * FROM REListing where (AdType = '1')" Set rs = Server.CreateObject("ADODB.Recordset") rs.Open sSQL, objADO, 1, 3 IF (RS.EOF) THEN %> There are not any featured properties. <% Else rndMax = CInt(RS.RecordCount) RS.MoveFirst Do While Not RS.EOF RS.MoveNext Loop RS.MoveFirst Randomize Timer rndNumber = Int(RND * rndMax) RS.Move rndNumber id = rs("REListingId") imgsrc = rs("REListingImage") 'UrlTo = RS("LinkTo") 'GetImg = RS("ImgUrl") 'WriteSize1 = RS("SizeOf1") 'WriteSize2 = RS("SizeOf2") 'DisText = RS("TextUnder") 'ImpNow = RS("ImpNow") 'ImpNewNow = ImpNow + 1 End If %> <% if not rs.eof then %>

"> <%If (rs("REListingImage")) <> "upload" Then %> " border="0" width="160" height="120"> <% Else%> <%End If %>
<%=rs("REListingCity")%>, <%=rs("REListingState")%>   <%=rs("REListingZip")%>
<% if rs("REListingPrice") > "0" then %> <%= formatcurrency(rs("REListingPrice"))%> <% else %> Call For Price <% end if %>

Click here to view more featured properties. <% end if %>

<% if SiteIdMsg <> "" then %>
Message(s): <%= SiteIdMsg %>
<% end if %>
Site Id Search:

<% if strMailWarning <> "" then %>
Message(s): <%= strMailWarning %>
<% end if %>

Join Our Mailing List
Enter Your Email Address:
<%=rsRealEstate("REListingCity")%>, <%= rsState("StateId")%> <%= rsRealEstate("REListingType") %> <% if rsRealEstate("REListingPrice") > 0 then %> <%= formatcurrency(rsRealEstate("REListingPrice"))%> <% else %> Contact For Price <% end if %>
<% if msg <> "" then %> <% end if %>
<%= msg %>
Place your cursor over each smaller picture to enlarge
or click on the smaller picture for a full view.
<%If (rsRealEstate("REListingImage")) <> "upload" Then If UCase(Left(rsRealEstate("REListingImage"),7))="HTTP://" Then%> " border="0" width="320" height="240" name="bigimage">

<%Else%> " border="0" width="320" height="240" name="bigimage"> <%End If Else%> <%End If%>
<%If (rsRealEstate("REListingImage")) <> "upload" Then %> <%= rsRealEstate("Image1Caption")%>
<% If UCase(Left(rsRealEstate("REListingImage"),7))="HTTP://" Then%> " border="0" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage")%>',1)">

<%Else%> ','','550','550','1','1','100','100');">" border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage")%>',1)"> <%End If Else%> <%End If%>
<%If (rsRealEstate("REListingImage2")) <> "upload" Then %> <%= rsRealEstate("Image2Caption")%>
<% If UCase(Left(rsRealEstate("REListingImage2"),7))="HTTP://" Then%> " border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage2")%>',1)">

<%Else%> ','','550','550','1','1','100','100');">" border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage2")%>',1)"> <%End If Else%> <%End If%>
<%If (rsRealEstate("REListingImage3")) <> "upload" Then %> <%= rsRealEstate("Image3Caption")%>
<% If UCase(Left(rsRealEstate("REListingImage3"),7))="HTTP://" Then%> " border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage3")%>',1)">

<%Else%> ','','550','550','1','1','100','100');">" border="0" width="120" height="80" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage3")%>',1)"> <%End If Else%> <% End If%>
<%If (rsRealEstate("REListingImage4")) <> "upload" Then %> <%= rsRealEstate("Image4Caption")%>
<% If UCase(Left(rsRealEstate("REListingImage4"),7))="HTTP://" Then%> " border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage4")%>',1)">

<%Else%> ','','550','550','1','1','100','100');">" border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage4")%>',1)"> <%End If Else%> <% End If%>
<%If (rsRealEstate("REListingImage5")) <> "upload" Then %> <%= rsRealEstate("Image5Caption")%>
<% If UCase(Left(rsRealEstate("REListingImage5"),7))="HTTP://" Then%> " border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage5")%>',1)">

<%Else%> ','','550','550','1','1','100','100');">" border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage5")%>',1)"> <%End If Else%> <% End If%>
<%If (rsRealEstate("REListingImage6")) <> "upload" Then %> <%= rsRealEstate("Image6Caption")%>
<% If UCase(Left(rsRealEstate("REListingImage6"),7))="HTTP://" Then%> " border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage6")%>',1)">

<%Else%> ','','550','550','1','1','100','100');">" border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage6")%>',1)"> <%End If Else%> <% End If%>
<%If (rsRealEstate("REListingImage7")) <> "upload" Then %> <%= rsRealEstate("Image7Caption")%>
<% If UCase(Left(rsRealEstate("REListingImage7"),7))="HTTP://" Then%> " border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage7")%>',1)">

<%Else%> ','','550','550','1','1','100','100');">" border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage7")%>',1)"> <%End If Else%> <% End If%>
<%If (rsRealEstate("REListingImage8")) <> "upload" Then %> <%= rsRealEstate("Image8Caption")%>
<%If UCase(Left(rsRealEstate("REListingImage8"),7))="HTTP://" Then%> " border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage8")%>',1)">

<%Else%> ','','550','550','1','1','100','100');">" border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage8")%>',1)"> <%End If Else%> <% End If%>
<%If (rsRealEstate("REListingImage9")) <> "upload" Then %> <%= rsRealEstate("Image9Caption")%>
<% If UCase(Left(rsRealEstate("REListingImage9"),7))="HTTP://" Then%> " border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage9")%>',1)">

<%Else%> ','','550','550','1','1','100','100');">" border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage9")%>',1)"> <%End If Else%> <% End If%>
<%If (rsRealEstate("REListingImage10")) <> "upload" Then %> <%= rsRealEstate("Image10Caption")%>
<% If UCase(Left(rsRealEstate("REListingImage10"),7))="HTTP://" Then%> " border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage10")%>',1)">

<%Else%> ','','550','550','1','1','100','100');">" border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage10")%>',1)"> <%End If Else%> <% End If%>
<%If (rsRealEstate("REListingImage11")) <> "upload" Then %> <%= rsRealEstate("Image11Caption")%>
<% If UCase(Left(rsRealEstate("REListingImage11"),7))="HTTP://" Then%> " border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage11")%>',1)">

<%Else%> ','','550','550','1','1','100','100');">" border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage11")%>',1)"> <%End If Else%> <% End If%>
<%If (rsRealEstate("REListingImage12")) <> "upload" Then %> <%= rsRealEstate("Image12Caption")%>
<%If UCase(Left(rsRealEstate("REListingImage12"),7))="HTTP://" Then%> " border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage12")%>',1)">

<%Else%> ','','550','550','1','1','100','100');">" border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage12")%>',1)"> <%End If Else%> <% End If%>
<%If (rsRealEstate("REListingImage13")) <> "upload" Then %> <%= rsRealEstate("Image13Caption")%>
<% If UCase(Left(rsRealEstate("REListingImage13"),7))="HTTP://" Then%> " border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage13")%>',1)">

<%Else%> ','','550','550','1','1','100','100');">" border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage13")%>',1)"> <%End If Else%> <% End If%>
<%If (rsRealEstate("REListingImage14")) <> "upload" Then %> <%= rsRealEstate("Image14Caption")%>
<% If UCase(Left(rsRealEstate("REListingImage14"),7))="HTTP://" Then%> " border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage14")%>',1)">

<%Else%> ','','550','550','1','1','100','100');">" border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage14")%>',1)"> <%End If Else%> <% End If%>
<%If (rsRealEstate("REListingImage15")) <> "upload" Then %> <%= rsRealEstate("Image15Caption")%>
<% If UCase(Left(rsRealEstate("REListingImage15"),7))="HTTP://" Then%> " border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage15")%>',1)">

<%Else%> ','','550','550','1','1','100','100');">" border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage15")%>',1)"> <%End If Else%> <% End If%>
<%If (rsRealEstate("REListingImage16")) <> "upload" Then %> <%= rsRealEstate("Image16Caption")%>
<%If UCase(Left(rsRealEstate("REListingImage16"),7))="HTTP://" Then%> " border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage16")%>',1)">

<%Else%> ','','550','550','1','1','100','100');">" border="0" width="120" height="80" onMouseOver="MM_swapImage('bigImage','','upload/<%=rsRealEstate("REListingImage16")%>',1)"> <%End If Else%> <% End If%>
<% if Session("AccessLevel") = "1" or session("UserName") = rsRealEstate("REListingUserName") then %> <% end if %> <% if rsRealEstate("REDisplayContact") = "1" then %> <% else %> <% if rsRealEstate("REListingTel") <> "" then %> <% end if %> <% end if %> <% end if %>

">   ">
<% Set objRS = Server.CreateObject("ADODB.Recordset") 'Establish what records you want selected for the SQL query string SQL = "Select * From REListing where REListingId = " & lID 'Set the recordset object equal to the SQL query string objRS.Open SQL, objADO, 1, 3 strHits = objRS("REListingHits") strHits = strHits + 1 objRS("REListingHits") = strHits objRS.update %> <% response.write "
This property has been viewed " & objRS("REListingHits") & " times.
" %>
<% if rsRealEstate("REListingVTour") <> "" then %>
[" target="_blank">Click For Virtual Tour] <%End If%> <% if rsRealEstate("REListingSlideShow") <> "" then %>       [" target="_blank">Click To View Slide Show]

<%End If%>
">[ To Watch List ]     ">[ Printable Listing ]     [ Email A Friend ]
','','430','445','1','0','100','100');"> [ Contact The Seller ] <% if rsRealEstate("REDisplayAddress") = "1" then %> <% if rsRealEstate("REListingCountry") = "UNITED STATES" then %> &city=<%= rsRealEstate("REListingCity") %>&state=<%= rsRealEstate("REListingState") %>&zipcode=<%= rsRealEstate("REListingZip") %>&historyid=&submit.x=44&submit.y=11" target=" "> [ View Map / Get Directions ] <% end if %> <% if rsRealEstate("REListingCountry") = "CANADA" then %> &city=<%= rsRealEstate("REListingCity") %>&state=<%= rsState("StateId")%>&zipcode=<%= rsRealEstate("REListingZip") %>&submit.x=48&submit.y=12','','650','550','1','1','100','100');"> [ View Map / Get Directions ] <% end if %> <% end if %> <% if rsRealEstate("REListingCountry") = "UNITED STATES" then %> " target="_blank"> [ View Schools ] <% end if %>

 HOME DETAILS

Site Listing # <%= rsRealEstate("REListingId")%> , Status: <%=rsRealEstate("REListingStatus")%>
<%=rsRealEstate("REListingDescription")%>

<% if rsRealEstate("REListingPrice")> 0 then %> <%= formatcurrency(rsRealEstate("REListingPrice")) %>

<% else %> ','','430','445','1','1','100','100');">Contact Seller For Price

<% end if %> Location:
<% if rsRealEstate("REDisplayAddress") = "1" then %> <%=rsRealEstate("REListingAddress1")%>
<% if rsRealEstate("REListingAddress2")<> "" then %> <%=rsRealEstate("REListingAddress2")%>
<% end if %> <% end if %> <% if rsRealEstate("REListingCity")<> "" then %> <%=rsRealEstate("REListingCity")%>
<% end if %> <% if rsRealEstate("REListingState")<> "" then %> <%= rsRealEstate("REListingState")%>
<% end if %> <% if rsRealEstate("REListingZip")<> "" then %> <%= rsRealEstate("REListingZip")%>
<% end if %>

<% if rsAgent("AgentPicture") <> "" then %>
Call today to arrange a showing!
','','550','550','1','1','100','100');">" height="100" width="100" border="0"> <%= rsRealEstate("REListingAgent") %>
Phone: <%= formatphonenumber(rsRealEstate("REListingTel")) %>
<% if rsAgent("FaxNumber") <> "" then %> Fax: <%= formatphonenumber(rsAgent("FaxNumber")) %>
<% end if %> Email: "> <%= rsRealEstate("REListingEmail") %>
<%= rsAgent("Website") %>

<%sREListingEmail = rsRealEstate("REListingEmail") If Len(sREListingEmail) > 0 Then %>Contact: <% End If %> <%= rsRealEstate("REListingAgent")%> <% If Len(sREListingEmail) > 0 Then %><% End If%>
Call <%= formatphonenumber(rsRealEstate("REListingTel")) %> for more information.
<%= rsRealEstate("REListingSKUNo")%>
">[ View All Properties By This User ]

<%iYearBuilt = rsRealEstate("REListingYearBuilt") If iYearBuilt > 0 Then%> <%End If%> <%If rsRealEstate("ReListing.REStyleID") > 0 Then%> <%End If If rsRealEstate("ReListing.REExteriorID") > 0 Then%> <%End If If rsRealEstate("ReListing.RERoofID") > 0 Then%> <%End If If rsRealEstate("ReListing.REDrivewayID") > 0 Then%> <%End If If rsRealEstate("ReListing.REGarageID") > 0 Then%> <%End If If rsRealEstate("ReListing.REHeatID") > 0 Then%> <%End If If rsRealEstate("ReListing.REACID") > 0 Then%> <%End If If rsRealEstate("ReListing.REWaterID") > 0 Then%> <%End If If rsRealEstate("ReListing.RESewerID") > 0 Then%> <%End If If rsRealEstate("REListingDisposal") = True Then%> <%End If If rsRealEstate("REListingDishwasher") = True Then%> <%End If curTaxValue = rsRealEstate("REListingTaxValue") If curTaxValue > 0 Then%> <%End If curTaxes = rsRealEstate("REListingTaxes") If curTaxes > 0 Then%> <%End If curAvgElectric = rsRealEstate("REListingAvgElectric") curAvgOil = rsRealEstate("REListingAvgOil") curAvgGas = rsRealEstate("REListingAvgGas") curAvgWater = rsRealEstate("REListingAvgWater") If curAvgElectric > 0 And curAvgWater > 0 Then%> <%End If%>
Year Built <%=iYearBuilt%>
Type <%= rsRealEstate("REListingType")%>,   <%= rsRealEstate("RESaleType")%>
Style <%=rsRealEstate("REStyleName")%>
Exterior <%=rsRealEstate("REExteriorName")%>
Roof <%=rsRealEstate("RERoofName")%>
Driveway <%=rsRealEstate("REDrivewayName")%>
Garage <%=rsRealEstate("REGarageName")%>
Heating <%=rsRealEstate("REHeatName")%>
AC <%=rsRealEstate("REACName")%>
Water <%=rsRealEstate("REWaterName")%>
Sewer <%=rsRealEstate("RESewerName")%>
Disposal Yes
Dishwasher Yes
Tax Value <%=FormatCurrency(curTaxValue)%>
Taxes <%=FormatCurrency(curTaxes)%>
Avg.Electric Avg.Oil Avg.Gas Avg.Water
<%=FormatCurrency(curAvgElectric)%> <%=FormatCurrency(curAvgOil)%> <%=FormatCurrency(curAvgGas)%> <%=FormatCurrency(curAvgWater)%>
<%sLotSize = rsRealEstate("REListingLotSize") If Len(sLotSize) > 0 Then%> <%End If lLevel1ft = rsRealEstate("REListingLevel1ft") If lLevel1ft > 0 Then%> <%End If lLevel2ft = rsRealEstate("REListingLevel2ft") If lLevel2ft > 0 Then%> <%End If lBasementft = rsRealEstate("REListingBasementft") If lBasementft > 0 Then%> <%End If lTotalft = rsRealEstate("REListingTotalft") If lTotalft > 0 Then%> <%End If iBedrooms = rsRealEstate("REListingBedrooms") If iBedrooms > 0 Then%> <%End If iBathrooms = rsRealEstate("REListingBathrooms") If iBathrooms > 0 Then%> <%End If iFireplace = rsRealEstate("REListingFireplace") If iFireplace > 0 Then%> <%End If iLevels = rsRealEstate("REListingLevels") If iLevels > 0 Then%> <%End If If rsRealEstate("REListingRoom1ID") > 0 Then%> <%End If%>
Acre(s) or Lot Size <%=sLotSize%>
Level 1 ft2 <%=lLevel1ft%>
Level 2 ft2 <%=lLevel2ft%>
Basement ft2 <%=lBasementft%>
Total ft2 <%=lTotalft%>
Bedrooms <%=iBedrooms%>
Bathrooms <%=iBathrooms%>
Fireplace(s) <%=iFireplace%>
Levels <%=iLevels%>

Room

Dimensions

Flooring

<%Response.Write " "%><%=GetRoomName(rsRealEstate("REListingRoom1ID"))%> <%Response.Write " "%><%If iRoom < 1 Then Response.Write rsRealEstate("REListingSize1")%> <%Response.Write " "%><%=GetFlooringName(rsRealEstate("REListingFlooring1ID"))%>
<%Response.Write " "%><%=GetRoomName(rsRealEstate("REListingRoom2ID"))%> <%Response.Write " "%><%If iRoom < 2 Then Response.Write rsRealEstate("REListingSize2")%> <%Response.Write " "%><%=GetFlooringName(rsRealEstate("REListingFlooring2ID"))%>
<%Response.Write " "%><%=GetRoomName(rsRealEstate("REListingRoom3ID"))%> <%Response.Write " "%><%If iRoom < 3 Then Response.Write rsRealEstate("REListingSize3")%> <%Response.Write " "%><%=GetFlooringName(rsRealEstate("REListingFlooring3ID"))%>
<%Response.Write " "%><%=GetRoomName(rsRealEstate("REListingRoom4ID"))%> <%Response.Write " "%><%If iRoom < 4 Then Response.Write rsRealEstate("REListingSize4")%> <%Response.Write " "%><%=GetFlooringName(rsRealEstate("REListingFlooring4ID"))%>
<%Response.Write " "%><%=GetRoomName(rsRealEstate("REListingRoom5ID"))%> <%Response.Write " "%><%If iRoom < 5 Then Response.Write rsRealEstate("REListingSize5")%> <%Response.Write " "%><%=GetFlooringName(rsRealEstate("REListingFlooring5ID"))%>
<%Response.Write " "%><%=GetRoomName(rsRealEstate("REListingRoom6ID"))%> <%Response.Write " "%><%If iRoom < 6 Then Response.Write rsRealEstate("REListingSize6")%> <%Response.Write " "%><%=GetFlooringName(rsRealEstate("REListingFlooring6ID"))%>
<%Response.Write " "%><%=GetRoomName(rsRealEstate("REListingRoom7ID"))%> <%Response.Write " "%><%If iRoom < 7 Then Response.Write rsRealEstate("REListingSize7")%> <%Response.Write " "%><%=GetFlooringName(rsRealEstate("REListingFlooring7ID"))%>
<%Response.Write " "%><%=GetRoomName(rsRealEstate("REListingRoom8ID"))%> <%Response.Write " "%> <%If iRoom < 8 Then Response.Write rsRealEstate("REListingSize8")%> <%Response.Write " "%><%=GetFlooringName(rsRealEstate("REListingFlooring8ID"))%>

<% If Len(curDownPayment) < 1 Then curDownPayment = Request("DownPaymentAmt") If Len(curDownPayment) < 1 Then curDownPayment = 0 If Len(iDownPayment) < 1 Then iDownPayment = Request("DownPaymentPcnt") If Len(iDownPayment) < 1 Then iDownPayment = 5 If Len(iMonths) < 1 Then iMonths = Request("Months") If Len(iMonths) < 1 Then iMonths = 360 If Len(iYears) < 1 Then iYears = Request("Years") If Len(iYears) < 1 Then iYears = 30 If Len(sngInterest) < 1 Then sngInterest = Request("Interest") If Len(sngInterest) < 1 Then sngInterest = 8 %> Mortgage Calculator
Home Price "" then %> VALUE="<%= rsRealEstate("REListingPrice")%>" <% else %> VALUE="0" <% end if %> onChange="CheckDollarField(this); if(ReadDollarField(this) < ReadDollarField(this.form.downpay)) { this.form.downpay.value = this.value; RecalcDownPayPerc(this.form) } RecalcMonthlyPay(this.form)" onFocus="cache=this.value">
Down Payment , or
%
Loan Term months, or
years.
Annual Interest Rate %
Monthly Payment
Calculate


  Email A Friend

Friend's Name: *
Friend's Email: *
Your Name: *
Your Email: *
Comments:

(c) <%= year(date) %> <%= strVarCompany %>
Read our Terms & Conditions, and Privacy Policy
Website Development Provided By: Development Solutions